import {INCREAEMENT,DECREAEMENT,ADDPERSON} from './ActionTypes'
export  const increaement=(data)=>{return {type:INCREAEMENT,data}}
export  const decreaement=(data)=>{return {type:DECREAEMENT,data}}
export  const addperson=(data)=>{return {type:ADDPERSON,data}}
export const increaemenAsync = (data,time) =>{
  return dispatch =>{
      setTimeout(()=>{
          dispatch(increaement(data))
      },time);
  }
}